import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入Element UI
import ElementUI from 'element-ui' 
//全局引入elmentUI的样式
import 'element-ui/lib/theme-chalk/index.css'
//调用elementUI 
Vue.use(ElementUI)
// 引入全局封装好的组件
import gCom from './common'
for(let i in gCom){
  // console.log(gCom);
  Vue.component(i,gCom[i])
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
